package com.project.bean;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

/**
 * 销售明细实体类
 * @author Zchaolin
 * @version 1.0
 * @created 29-7月-2022 9:34:37
 */
@TableName("t_sellInfo")
public class SellInfoBean {

	/**
	 * 明细编号
	 */
	@TableId(value = "pk_sellInfoId",type = IdType.AUTO)
	private Integer id;
	/**
	 * 销售商品
	 */
	@TableField(exist = false)
	private ProductBean product;
	/**
	 * 销售商品编号
	 */
	@TableField("fk_productId")
	private String productId;
	/**
	 * 成交价
	 */
	@TableField("si_sellMoney")
	private Integer sellMoney;
	/**
	 * 销售数量
	 */
	@TableField("si_num")
	private Integer num;
	/**
	 * 所属销售实体
	 */
	@TableField(exist = false)
	private SellBean sellBean;
	/**
	 * 所属销售实体编号
	 */
	@TableField("fk_sellId")
	private Integer sellId;

	public SellInfoBean(){

	}

	public SellInfoBean(String productId, Integer sellMoney, Integer num, Integer sellId) {
		this.productId = productId;
		this.sellMoney = sellMoney;
		this.num = num;
		this.sellId = sellId;
	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public ProductBean getProduct() {
		return product;
	}

	public void setProduct(ProductBean product) {
		this.product = product;
	}

	public String getProductId() {
		return productId;
	}

	public void setProductId(String productId) {
		this.productId = productId;
	}

	public Integer getSellMoney() {
		return sellMoney;
	}

	public void setSellMoney(Integer sellMoney) {
		this.sellMoney = sellMoney;
	}

	public Integer getNum() {
		return num;
	}

	public void setNum(Integer num) {
		this.num = num;
	}

	public SellBean getSellBean() {
		return sellBean;
	}

	public void setSellBean(SellBean sellBean) {
		this.sellBean = sellBean;
	}

	public Integer getSellId() {
		return sellId;
	}

	public void setSellId(Integer sellId) {
		this.sellId = sellId;
	}

	@Override
	public String toString() {
		return "SellInfoBean{" +
				"id=" + id +
				", product=" + product +
				", productId=" + productId +
				", sellMoney=" + sellMoney +
				", num=" + num +
				", sellBean=" + sellBean +
				", sellId=" + sellId +
				'}'+"\n";
	}
}